from django.db import models
from libs.db import BaseModel


class Demo(BaseModel):
    name = models.CharField('名称', max_length=100)
    field1 = models.CharField('参数1', max_length=30, null=True, blank=True)
    field2 = models.CharField('参数2', max_length=30, null=True, blank=True)
    field3 = models.CharField('参数3', max_length=30, null=True, blank=True)
    field4 = models.CharField('参数4', max_length=30, null=True, blank=True)
    field5 = models.CharField('参数5', max_length=30, null=True, blank=True)
    field6 = models.CharField('参数6', max_length=30, null=True, blank=True)
    is_deleted = models.BooleanField('删除', default=False)

    class Meta:
        verbose_name = '产品'
        verbose_name_plural = '产品'
        ordering = ('-id',)
